﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MDVCamera
{
	public class MdvParam
	{
		public string Name = "Cam";
		public int Width = 2592;
		public int Height = 1944;
		public int Ch = 1;
		//public float Gain = 3.0F;
		public float Exposure = 5.0F;//ms

		public int StrobeAuto = 0; //自动是0,半自动是1
		public int StrobeLow = 0;//低电平是0，高电平是1
		public int StrobeDelayTime = 50; //延时
		public int StrobePluseWidth = 10; //脉冲宽度


		public int MirrorCnt = 0; //0 是不翻转，1 是只翻转一个，2是水平镜像都翻转
		public int MirrorDir = 0;//0是水平，1是垂直

		public int RotateDir = 0;//（0：不旋转 1:90度 2:180度 3:270度）

		public int GetW()
		{
			if ((RotateDir & 0x01) > 0) return Height;
			return Width;
		}
		public int GetH()
		{
			if ((RotateDir & 0x01) > 0) return Width;
			return Height;
		}

	}
}
